package com.example.demo.mvc;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloSpringBoot {

    @RequestMapping("/hello")
    public String hello(){
        return "Hello SpringBoot!!!";
    }
    @RequestMapping("/param")
    public String param(@RequestParam("fan") String str,@RequestBody String s){
        return str+"\n"+s;
    }
}
